<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="col-md-12">
	<div class="panel-search">
		<form class="form-inline" action="/safeWarning/list">
			<div class="form-group">
				<label class="control-label">请选择仓库：</label><select
					class="form-control" name="warehouseId" style="width: 200px;">
					<option value="0" selected="selected">--请选择--</option>
					<c:forEach items="${warehouses}" var="warehouse" varStatus="vs">
						<option value="${warehouse.id }">${warehouse.name}</option>
					</c:forEach>
				</select>
				<button type="button" class="btn btn-primary" onclick="search()">
					<i class="fa fa-search"></i>
					<spring:message code="btn.search"></spring:message>
				</button>
			</div>

		</form>
		<div class="btn-div" style="float: right;">
			<div class="div-right">
				<button class="btn btn-primary"
					onclick="add('/safeWarning/safeWarning')">
					<i class="fa fa-plus"></i>新增安全库存
				</button>
			</div>
		</div>
	</div>
	<div class="panel-content"></div>
</div>
<script type="text/javascript"
	src="<c:url value="/static/custom/datepicker-util.js"></c:url>"></script>
<script type="text/javascript">
	$(function() {
		search();
	});
</script>